SWEP.Category = "Stargate";
SWEP.PrintName = "Mini-Drone Launcher";
SWEP.Author = "RononDex";
SWEP.Contact = "ronondex@hotmail.co.uk";
SWEP.Purpose = "Fire little drones at little people";
SWEP.Instuctions = "Left Click fire, Right click Eye track";
SWEP.Base = "weapon_base";
SWEP.Slot = 1;
SWEP.SlotPos = 3;
SWEP.DrawAmmo = true;
SWEP.DrawCrosshair = true;
SWEP.ViewModel = "models/weapons/v_pistol.mdl";
SWEP.WorldModel = "models/weapons/w_pistol.mdl";

//Primary Shot info

SWEP.Primary.ClipSize = 100;
SWEP.Primary.DefaultClip = 100;
SWEP.Primary.Automatic = true;
SWEP.Primary.Ammo = "none";

// Secondary stuff 

SWEP.Secondary.ClipSize = -1;
SWEP.Secondary.DefaultClip = -1;
SWEP.Secondary.Automatic = false;
SWEP.Secondary.Ammo = "none";

SWEP.Spawnable = false;
SWEP.AdminSpawnable = true;

// Primary Attack EG. Fire the mini drone
function SWEP:PrimaryAttack()
	local tr = self.Owner:GetEyeTrace();
	if (!SERVER) then return end;
	local ent = ents.Create ("mini_drone")
	ent:SetPos (self.Owner:EyePos() + (self.Owner:GetAimVector() * 16));
	ent:SetAngles (self.Owner:EyeAngles());
	ent:Spawn();
end

// We don't have secondary attack
function SWEP:SecondaryAttack()
return false end